package com.bw.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.house.dao.HouseOrderDao;
import com.bw.house.entity.HouseOrderEntity;
import com.bw.house.service.HouseOrderService;


@Service("houseOrderService")
public class HouseOrderServiceImpl extends ServiceImpl<HouseOrderDao, HouseOrderEntity> implements HouseOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseOrderEntity> page = this.page(
                new Query<HouseOrderEntity>().getPage(params),
                new QueryWrapper<HouseOrderEntity>()
        );

        return new PageUtils(page);
    }

}